module ParamsDebugger
  class Parser
    DEFAULT_LOG = :development
    
    def self.parse_options args
      args.inject([]) do |options, arg|
        options << arg.delete('-') if arg.match /^-/
        options
      end
    end
    
    def self.parse_actions args
      args.inject([]) do |actions, arg|
        actions << arg unless arg.match /^-/
        actions
      end
    end
    
    def self.parse_log options
      "log/#{DEFAULT_LOG}.log"
    end
  end
end
